package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


/**
 * mybatis整合步骤
 * 1.加mybatis-plus驱动依赖  注意：不是单纯的mybatis的依赖
 * 2.加mysql驱动依赖  5  8
 * 3.配置yml的配置(连接数据库)
 * 1.配置数据源  用户名 密码 url：jdbc:mysql//ip:端口/数据库名称
 * 2.配置驱动名称
 * 4，配置mybaits-plus
 * 1.启动类配置让他能找到dao类位置 @mapperScam
 * 2.yml 配置
 * <p>
 * 1.mapper-locations: 目的扫描当前所有的mapper文件下的xml文件
 * 2.设置全局实体类id自增  idtype
 */


@EnableFeignClients(basePackages = "com.atguigu.gulimall.product.fegin")
@EnableDiscoveryClient
@MapperScan("com.atguigu.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
